<style>
/*
===================
管理操作
===================
*/
.pop_operat_reason{
	border-top:1px dotted #ccc;
}
.pop_operat_reason dt,
.pop_operat_management dt{
	float:left;
	width:85px;
	line-height:26px;
}
.pop_operat_reason dd,
.pop_operat_management dd{
	overflow:hidden;
	line-height:26px;
}
.pop_operat_management dl{
	padding:0 0 10px 0;
}
.pop_operat_management ul{
	padding-bottom:5px;
}
.pop_operat_management li{
	margin-bottom:3px;
	float:left;
	width:100%;
	border:0 none;
	background:#f7f7f7;
	padding:3px 0;
	border-radius: 3px;
}
.pop_operat_management li .ct{
	display:none;
	padding:5px 10px 10px;
}
.pop_operat_management li .hd{
	padding:0 5px;
}
.pop_operat_management li .hd label{
	display:inline-block;
	background:url({@G:url.images}/management/arrow_down.png) right center no-repeat;
	padding:0 5px;
	width:365px;
}
.pop_operat_management li.current .hd label{
	background:url({@G:url.images}/management/arrow_up.png) right center no-repeat;
}
.pop_operat_management li.current{
	background:#f1f1f1;
}
.pop_operat_management li.current .ct{
	display:block;
}
.pop_operat_management .title{
	padding:0 0 15px 15px;
}
.pop_operat_management .merger{
	padding:0 0 10px 15px;
}
.pop_operat_del{
	font-size:14px;
	padding:10px 15px 20px;
}

/*
===================
高亮
===================
*/
.sub_high_light{
}
.sub_high_light a{
	display:inline-block;
	padding:3px 5px;
	border:1px solid #ccc;
	background:#fff;
	margin-right:4px;
	vertical-align:middle;
}
.sub_high_light a:hover{
	text-decoration:none;
	border-color:#1377a9;
}
.sub_high_light a.current{
	background-color:#2298d3;
	border-color:#1377a9 #2298d3 #2298d3;
	color:#fff;
}
.sub_high_light .color_pick{
	margin-right:15px;
}
</style>
<div style="width:440px;">
	<form action="{@WindUrlHelper::createUrl('bbs/manage/' . $doaction)|url}" method="post" id="J_post_manage_ajaxForm">
	<div class="pop_top J_drag_handle"><a href="#" class="pop_close J_close">关闭</a><strong>{$title}</strong>(&nbsp;<span id="J_manage_checked_count" class="red">{$count}</span>&nbsp;<!--#if ($action == 'ban'){#-->个<!--#}else{#-->篇<!--#}#-->)</div>
	<div class="pop_cont">
<!--#
$combined1 = array('topped','digest','highlight','up');
$combined2 = array('down','lock');
#-->
		<!--# if (Pw::inArray($action, $combined1)) { #-->
		<div class="pop_operat_management">
			<ul class="cc">
				<!--# if ($operateThread['topped']) { #-->
				<li class="{@Pw::isCurrent($action == 'topped')}">
					<div class="hd">
						<input name="actions[]" type="checkbox" value="topped" class="J_toggle"{@Pw::ifcheck($action == 'topped')} /><label class="J_toggle">置顶</label>
					</div>
					<div class="ct">
						<select id="J_topped_select" class="select_3 mr20" name="topped">
							<option value="1">本版置顶</option>
							<!--# if ($operateThread['topped_type'] > 1) { #-->
							<option value="2"{@Pw::isSelected($defaultTopped == 2)}>分类置顶</option>
							<!--# } #-->
							<!--# if ($operateThread['topped_type'] > 2) { #-->
							<option value="3"{@Pw::isSelected($defaultTopped == 3)}>全局置顶</option>
							<!--# } #-->
							<option value="0" id="J_topped_cancel">取消置顶</option>
						</select>有效期：<input id="J_topped_time" name="topped_overtime" value="{$toppedOvertime}" type="date" class="input length_2 J_date" />
						<!--  
						<div id="J_topped_forums" style="display:none;">
							<select name="topped_fids[]" class="select_3" size="5" multiple>
								{@$forumOption|html}
							</select>
						</div>
						-->
					</div>
				</li>
				<!--# } #-->
				<!--# if ($operateThread['digest']) { #-->
				<li class="{@Pw::isCurrent($action == 'digest')}">
					<div class="hd"><input name="actions[]" type="checkbox" value="digest" class="J_toggle"{@Pw::ifcheck($action == 'digest')} /><label class="J_toggle">精华</label></div>
					<div class="ct">
						<select id="J_digest_select" class="select_3 mr20" name="digest">
							<option value="1">设为精华</option>
							<option value="0">取消精华</option>
						</select>
					</div>
				</li>
				<!--# } #-->
				<!--# if ($operateThread['highlight']) { #-->
				<li class="{@Pw::isCurrent($action == 'highlight')}">
					<div class="hd"><input name="actions[]" type="checkbox" value="highlight" class="J_toggle"{@Pw::ifcheck($action == 'highlight')} /><label class="J_toggle">加亮</label></div>
					<div class="ct">
						<div class="sub_high_light">
							<a data-id="J_font_bold" href="#" class="J_font_style{@Pw::isCurrent($hightlightStyle['bold'])}">加粗</a>
							<a data-id="J_font_italic" href="#" class="J_font_style{@Pw::isCurrent($hightlightStyle['italic'])}">斜体</a>
							<a data-id="J_font_underline" href="#" class="J_font_style{@Pw::isCurrent($hightlightStyle['underline'])}">下划线</a>
							<span class="color_pick J_color_pick"><em class="J_bg" style="<!--# if ($hightlightStyle['color']) { #-->background:{$hightlightStyle['color']};<!--# } #-->"></em></span><input class="J_hidden_color" type="hidden" name="color" value="{$hightlightStyle['color']}" />有效期：<input name="highlight_overtime" value="{$hightlightOvertime}" type="date" class="input length_2 J_date" />
						</div>
						<input{@Pw::ifcheck($hightlightStyle['bold'])} class="dn" type="checkbox" name="bold" value="1" id="J_font_bold" />
						<input{@Pw::ifcheck($hightlightStyle['italic'])} class="dn" type="checkbox" name="italic" value="1" id="J_font_italic" />
						<input{@Pw::ifcheck($hightlightStyle['underline'])} class="dn" type="checkbox" name="underline" value="1" id="J_font_underline" />
						
					</div>
				</li>
				<!--# } #-->
				<!--# if ($operateThread['up']) { #-->
				<li class="{@Pw::isCurrent($action == 'up')}">
					<div class="hd">
						<input name="actions[]" type="checkbox" value="up" class="J_toggle"{@Pw::ifcheck($action == 'up')} /><label class="J_toggle">提前</label>
					</div>
					<div class="ct">提前时间：<input name="uptime" id="J_uptime" type="number" class="input length_2 mr5" />小时</div>
				</li>
				<!--# } #-->
			</ul>
		</div>
		<!--# } elseif (Pw::inArray($action, $combined2)) { #-->
		<!--#
		if ($defaultValues['lock']['locked'] == 1){
			$_checked_locked1 = ' checked';
		} else if ($defaultValues['lock']['locked'] == 2){
			$_checked_locked2 = ' checked';
		} else {
			$_checked_locked0 = ' checked';
		}
		#-->
		<div class="pop_operat_management">
			<ul class="cc">
				<!--# if ($operateThread['lock']) { #-->
				<li class="{@Pw::isCurrent($action == 'lock')}">
					<div class="hd"><input name="actions[]" type="checkbox" value="lock" data-id="J_toggle_lock" class="J_toggle"{@Pw::ifcheck($action == 'lock')} /><label class="J_toggle">锁定</label></div>
					<div class="ct" id="J_toggle_lock">
						<label class="mr20"><input name="locked" type="radio" value="0"{@Pw::ifcheck($defaultLocked == 0)} />解除锁定</label>
						<label class="mr20"><input name="locked" type="radio" value="1"{@Pw::ifcheck($defaultLocked == 1)} />锁定</label>
						<label class="mr20"><input name="locked" type="radio" value="2"{@Pw::ifcheck($defaultLocked == 2)} />关闭</label>
					</div>
				</li>
				<!--# } #-->
				<!--# if ($operateThread['down']) { #-->
				<li class="{@Pw::isCurrent($action == 'down')}">
					<div class="hd"><input name="actions[]" type="checkbox" value="down" data-id="J_toggle_down" class="J_toggle"{@Pw::ifcheck($action == 'down')} /><label class="J_toggle">压帖</label></div>
					<div class="ct" id="J_toggle_down">
						<span class="mr20">押后时间：<input name="downtime" type="number" class="input length_2 mr5" />小时</span>
						<label><input name="downed" type="checkbox" value="1" checked="checked" />不允许上浮</label>
					</div>
				</li>
				<!--# } #-->
			</ul>
		</div>
		<!--# } elseif ($action == 'delete') { #-->	
		<div class="not_content_mini"><i></i>确定要删除选中的主题？</div>
		<!--# } elseif ($action == 'move') { #-->
		<div class="pop_operat_management">
			<dl class="cc">
				<dt>移&nbsp;动&nbsp;到：</dt><dd><select name="fid" class="select_3 mr10" id="J_postmanage_forum" data-url="{@url:bbs/cate/topictypes/}"><option value="0">请选择版块</option>{@$option_html|html}</select></dd>
			</dl>
			<dl class="cc" id="J_postmanage_topic" style="display:none;">
				<dt>主题分类：</dt><dd>
					<!-- <input type="hidden" name="topic_type_id" value="" id="J_topic_type_id" /> -->
					<select id="J_postmanage_topictype" class="mr10" name="topictype">
						<option value="0">请选择分类</option>
					</select>
					<select id="J_postmanage_subtopictype" class="mr10" style="display:none;" name="sub_topictype"></select>
				</dd>
			</dl>
			<input name="actions[]" type="hidden" value="move"/>
		</div>
		<!--# } elseif ($action == 'copy') { #-->
		<div class="pop_operat_management">
			<dl class="cc">
				<dt>复&nbsp;制&nbsp;到：</dt><dd><select name="fid" class="select_3 mr10" id="J_postmanage_forum" data-url="{@url:bbs/cate/topictypes/}"><option value="0">请选择版块</option>{@$option_html|html}</select></dd>
			</dl>
			<dl class="cc" id="J_postmanage_topic" style="display:none;">
				<dt>主题分类：</dt><dd>
					<!-- <input type="hidden" name="topic_type_id" value="" id="J_topic_type_id" /> -->
					<select id="J_postmanage_topictype" class="mr10" name="topictype">
						<option value="0">请选择分类</option>
					</select>
					<select id="J_postmanage_subtopictype" class="mr10" style="display:none;" name="sub_topictype"></select>
				</dd>
			</dl>
			<input name="actions[]" type="hidden" value="copy"/>
		</div>
		<!--# } elseif ($action == 'type') { #-->
		<div class="pop_operat_management">
			<dl class="cc">
				<dt>主题分类：</dt><dd>						
					<input type="hidden" name="topic_type_id" value="" id="J_topic_type_id" />
					<select id="J_postmanage_type_topictype" class="mr10" name="topictype">
						<option value="0">请选择分类</option>
						<!--# foreach($topicTypes as $k => $v) { #-->
						<option value="{$k}">{@strip_tags($v['name'])}</option>
						<!--# } #-->
					</select>
					<select id="J_postmanage_subtopictype" class="mr10" style="display:none;" name="sub_topictype">
						<option value="0">请选择二级分类</option>
					</select>
				</dd>
			</dl>
			<input name="actions[]" type="hidden" value="type"/>
		</div>
		<script>var THREAD_SORT = {$topicTypes|json};</script>
<!--===========用户禁止================-->
		<!--# } elseif ($action == 'ban') { #-->
		<div class="pop_operat_management">
			<dl class="cc">
				<dt>禁止对象：</dt><dd>
<!--#foreach ($userNames as $_item) {#-->
				{$_item['username']}<span class="s1" style="display:none">(管理员权限点判断)</span>,
				<input type="hidden" value="{$_item['uid']}" name="uids[]" />
<!--#}#-->
			</dl>
			<dl class="cc">
				<dt>禁止类型：</dt>
				<dd>
					<label class="mr10"><input type="checkbox" value="1" name="types[]" />禁止发布</label>
					<label class="mr10"><input type="checkbox" value="2" name="types[]" />禁止头像</label>
					<label class="mr10"><input type="checkbox" value="4" name="types[]" />禁止签名</label>
				</dd>
			</dl>
			<dl class="cc">
				<dt>有效期至：</dt><dd><input type="text" value="" name="end_time" class="input J_datetime date"></dd>
			</dl>
		</div>
		<!--#}#-->
		<div class="pop_operat_reason">
			<dl class="cc">
				<dt>操作理由：</dt>
				<dd>
					<input name="reason" type="text" id="J_resson_input" placeholder="写点操作理由吧" class="input length_5 mb10" />
					<select id="J_resson_select" class="select_5" size="5">
					<!--# foreach ($manageReason as $val) {
						$val = trim($val);
						if (!$val) continue;
						($val == '------') && $val = '----------------------------';
					#-->
						<option>{$val}</option>
					<!--#}#-->
					</select>
				</dd>
			</dl>
		</div>
	</div>
	<div class="pop_bottom cc">
		<button type="submit" class="btn btn_submit fr" id="J_sub_topped">提交</button>
		<span class="fl">
			<label class="mr10"><input name="sendnotice" type="checkbox" value="1" />发送通知</label>
			<!--#if ($action == 'ban') {#-->
				<!--#if (1 === $right['delCurrentThread']) {#-->
				<label class="mr10"><input type="checkbox" name="delete[current]" value="1" />删除当前主题</label>
				<!--#}if (1 === $right['delForumThread']) {#-->
				<label class="mr10"><input type="checkbox" name="delete[forum]" value="1" />删除本版主题</label>
				<!--#}if(1 === $right['delSiteThread']) {#-->
				<label class="mr10"><input type="checkbox" name="delete[site]" value="1" />删除全站主题</label>
				<!--#}#-->
			<!--# } elseif ($action == 'delete') { #-->
			<label><input name="deductCredit" type="checkbox" value="1" checked />扣除积分</label>
			<!--# } elseif (1) { #-->
			<!--label><input name="params[_other][print]" type="checkbox" value="" />显示印戳</label-->
			<!--# } #-->
		</span>
	</div>
	</form>
</div>